#include <iostream>
#include <vector>
#include <string>
using namespace std;
void example_p124();
void example_p124_1();
void practice_4_4();
void practice_4_8();
void practice_4_9();
void practice_4_10();
void practice_4_21();
void practice_4_22a();
void practice_4_22b();
void example_p137();
void practice_4_25();
void practice_4_31();
int main()
{
	//example_p124();
	//example_p124_1();
	//practice_4_4();
	//practice_4_8();
	//practice_4_9();
	//practice_4_10();
	//practice_4_21();
	//practice_4_22a();
	//practice_4_22b();
	//example_p137();
	//practice_4_25();
	practice_4_31();
	return 0;
}
void example_p124()
{
	int a[]={1,2,3,4,5};
	int *p=a+1;
	cout<<*++p<<endl;
}
void example_p124_1()
{
	int i=1024;
	int k=-i;
	cout<<k<<" "<<i<<endl;
}
void practice_4_4()
{
	cout<<12/3*4+5*15+24%4/2<<endl;
	cout<<((12/3)*4)+(5*15)+((24%4)/2)<<endl;
}
void practice_4_8()
{
	int f1();int f2();
	if(f1()==f2())cout<<"true"<<endl;
	else cout<<"false"<<endl;
}
int f1(){cout<<"f1()"<<endl;return 4;}
int f2(){cout<<"f2()"<<endl;return 5;}

void practice_4_9()
{
	int item;
	while(cin>>item && item!=42)
		cout<<item<<endl;
}
void practice_4_10()
{
	int a,b,c,d;
	cin>>a>>b>>c>>d;
	if(a>b&&b>c&&c>d)
		cout<<"true";
	else
		cout<<"false";
}
void practice_4_21()
{
	vector<int> v{1,2,3,4,5,6,7,8,9};
	for(auto it=v.begin();it!=v.end();++it)
		*it=(*it%2==0)?*it:*it*2;
	for(auto c:v)
		cout<<c<<" ";
}
void practice_4_22a()
{
	int grade;
	cin>>grade;
	string finalgrade=((grade>90)?"high pass":(grade<60)?"fail":(grade<=75)?"lowpass":"pass");
	cout<<finalgrade;
}
void practice_4_22b()
{
	int grade;
	cin>>grade;
	if(grade>90)
		cout<<"high pass"<<endl;
	else if(grade<60)
		cout<<"fail"<<endl;
	else if(grade<=75)
		cout<<"lowpass"<<endl;
	else
		cout<<"pass"<<endl;
}
void example_p137()
{
	void check_binary(unsigned long n);
	void set_pass(unsigned long &quiz1,int index);
	void set_failed(unsigned long &quiz1,int index);
	unsigned long quiz1=0;
	check_binary(quiz1);
	set_pass(quiz1,27);
	set_pass(quiz1,15);
	set_failed(quiz1,27);
	check_binary(quiz1);

}
void set_pass(unsigned long &quiz1,int index)
{
	quiz1|=1UL<<index;
}
void set_failed(unsigned long &quiz1,int index)
{
	quiz1&=~(1UL<<index);
}
void check_binary(unsigned long n)
{
	for(int i=31;i>=0;--i)
		cout<<((n>>i)&1)<<" ";
	cout<<endl;
}
void practice_4_25()
{
	cout<<(~'q'<<6)<<endl;
}
void practice_4_31()
{
	vector<int> ivec{11,12,13,14,15,16,17,18,19,20};
	vector<int>::size_type cnt=ivec.size();
	for(vector<int>::size_type ix=0;ix!=ivec.size();ix++,cnt--)
		ivec[ix]=cnt;
	for(auto c:ivec)
		cout<<c<<" ";
}